<template>
	<div>
		<van-icon name="good-job-o" />
		<el-link :underline="false" v-for="(user,key) in list" :key="key">
			{{user.name}}
		</el-link>
	</div>
</template>

<script>
	export default {
		props: {
			userList: Array
		},
		data() {
			return {
				list: []
			}
		},
		mounted() {
			if (this.userList !== undefined) {
				for (let key in this.userList) {
					if (key < this.userList.length - 1) {
						this.list.push({
							name: (this.userList[key].userName + "、"),
							id: this.userList[key].id
						})
					}else{
						this.list.push({
							name: this.userList[key].userName,
							id: this.userList[key].id
						})
					}
				}
			}
		}
	}
</script>

<style>
</style>